import 'package:flutter/widgets.dart';
import 'package:my_photos/app.dart';
import 'package:my_photos/core/configuration.dart';
import 'package:my_photos/core/network/network.dart';
import 'package:my_photos/logging.dart';
import 'package:my_photos/services/user_service.dart';

void main() async {
  await _init();
  Logging.instance.$("begin app");
  runApp(const MyApp());
}

Future<void> _init() async {
  await Logging.instance.init();
  await NetworkClient.instance.init();
  // await Configuration.instance.init();
  await UserService.instance.init();
}
